/**
 * 报表设计公司(2011)
 */
package com.reportgear.designer.action.file;

import java.awt.event.ActionEvent;


import net.abbp.report.designer.IDesigner;
import net.abbp.report.designer.context.DesignerContext;
import net.abbp.swing.util.ImageUtils;
import com.reportgear.designer.action.ReportAction;

/**
 * 新建报表
 * 
 * @version 1.0 2011-3-24
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since ANNCSR 2.0
 */
public class NewReportAction extends ReportAction {

	public NewReportAction() {
		setName("新建报表");
		setSmallIcon(ImageUtils.readIcon("file/new.png"));
	}

	public void actionPerformed(ActionEvent e) {
		IDesigner designer = DesignerContext.INSTANCE.getDesigner();

		designer.newModel();
	}
}
